<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp"%>
<script type="text/javascript">
    $(function() {
        $('#zcPolicyAddForm').form({
            url : '${path }/zcPolicy/add',
            onSubmit : function() {
                progressLoad();
                var isValid = $(this).form('validate');
                if (!isValid) {
                    progressClose();
                }
                return isValid;
            },
            success : function(result) {
                progressClose();
                result = $.parseJSON(result);
                if (result.success) {
                    parent.$.modalDialog.openner_dataGrid.datagrid('reload');//之所以能在这里调用到parent.$.modalDialog.openner_dataGrid这个对象，是因为user.jsp页面预定义好了
                    parent.$.modalDialog.handler.dialog('close');
                } else {
                    var form = $('#zcPolicyAddForm');
                    parent.$.messager.alert('错误', eval(result.msg), 'error');
                }
            }
        });
    });
</script>
<div class="easyui-layout" data-options="fit:true,border:false">
	<div data-options="region:'center',border:false"
		style="overflow: hidden; padding: 3px;">
		<form id="zcPolicyAddForm" method="post">
			<table class="grid">

				<tr>
					<td>年度</td>
					<td><input name="runyear" type="text" placeholder="请输入年度"
						class="easyui-validatebox" data-options="required:true" value="">
					</td>
				</tr>
				<tr>
					<td>封顶线</td>
					<td><input name="maxLine" type="text" placeholder="请输入封顶线"
						"class="easyui-validatebox" data-options="required:true" value=""></td>
				</tr>
				<tr>
					<td>报销比例</td>
					<td><input name="runRate" type="text" placeholder="请输入报销比例"
						"class="easyui-validatebox" data-options="required:true" value=""></td>
				</tr>
			</table>
		</form>
	</div>
</div>